.diff-attachments-new(
    ng-if="vm.diff.new.length"
    ng-repeat="newAttachment in vm.diff.new"
)
    span.key(translate="ACTIVITY.NEW_ATTACHMENT")
    span.diff {{newAttachment.filename}}
.diff-attachments-update(
    ng-if="vm.diff.changed.length"
    ng-repeat="editAttachment in vm.diff.changed"
) 
    span.key(
        translate="ACTIVITY.UPDATED_ATTACHMENT"
        translate-values="{filename: editAttachment.filename}"
    )
    span.diff(ng-if="editAttachment.changes.is_deprecated")
        span(
            ng-if="editAttachment.changes.is_deprecated[1] == false"
            translate="ACTIVITY.BECAME_UNDEPRECATED"
        )
        span(
            ng-if="editAttachment.changes.is_deprecated[1] == true"
            translate="ACTIVITY.BECAME_DEPRECATED"
        )
    span.diff(ng-if="editAttachment.changes.description")
        span(ng-if='editAttachment.changes.description[0].length') {{editAttachment.changes.description[0]}}
        span(ng-if='!editAttachment.changes.description[0].length') ...
        tg-svg(
            svg-icon="icon-arrow-right"
        )
        span {{editAttachment.changes.description[1]}}
        
.diff-attachments-deleted(
    ng-if="vm.diff.deleted.length"
    ng-repeat="deletedAttachment in vm.diff.deleted"
)
    span.key(translate="ACTIVITY.DELETED_ATTACHMENT")
    span.diff {{deletedAttachment.filename}}
